home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / aclocal-1.9 / dmalloc.m4 < prev    next >
Encoding:
M4 Source File  |  2005-10-13  |  986 b   |  32 lines

  1. ## ----------------------------------- ##                   -*- Autoconf -*-
  2. ## Check if --with-dmalloc was given.  ##
  3. ## From Franc,ois Pinard               ##
  4. ## ----------------------------------- ##
  5.  
  6. # Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2005
  7. # Free Software Foundation, Inc.
  8. #
  9. # This file is free software; the Free Software Foundation
  10. # gives unlimited permission to copy and/or distribute it,
  11. # with or without modifications, as long as this notice is preserved.
  12.  
  13. # serial 3
  14.  
  15. AC_DEFUN([AM_WITH_DMALLOC],
  16. [AC_MSG_CHECKING([if malloc debugging is wanted])
  17. AC_ARG_WITH(dmalloc,
  18. [  --with-dmalloc          use dmalloc, as in
  19.               http://www.dmalloc.com/dmalloc.tar.gz],
  20. [if test "$withval" = yes; then
  21.   AC_MSG_RESULT(yes)
  22.   AC_DEFINE(WITH_DMALLOC,1,
  23.         [Define if using the dmalloc debugging malloc package])
  24.   LIBS="$LIBS -ldmalloc"
  25.   LDFLAGS="$LDFLAGS -g"
  26. else
  27.   AC_MSG_RESULT(no)
  28. fi], [AC_MSG_RESULT(no)])
  29. ])
  30.  
  31. AU_DEFUN([fp_WITH_DMALLOC], [AM_WITH_DMALLOC])
  32.